package cc.bookcloud.tool.ocr.common.parsetext;

/**
 * @Desc: @todo
 * @Version: 2.0
 * @Author: John Goo
 * @Date: 2024/12/02 16:04
 **/
public enum  InvoiceTypeEnum {
    VAT_SPECIAL_INVOICE ("vat_special_invoice ","增值税专用发票（数电纸质专票） "),
    MOTOR_VEHICLE_SALE_INVOICE("motor_vehicle_sale_invoice","机动车销售统一发票 "),
    VAT_COMMON_INVOICE("vat_common_invoice","增值税普通发票（数电纸质普票） "),
    VAT_ELECTRONIC_INVOICE("vat_electronic_invoice","增值税电子普通发票 "),
    VAT_ROLL_INVOICE("vat_roll_invoice","增值税普通发票（卷票） "),
    VAT_ELECTRONIC_TOLL_INVOICE ("vat_electronic_toll_invoice ","增值税电子普通发票（通行费） "),
    USED_CAR_PURCHASE_INVOICE ("used_car_purchase_invoice ","二手车销售统一发票 "),
    GENERAL_MACHINE_INVOICE ("general_machine_invoice ","通用机打发票 "),
    QUOTA_INVOICE ("quota_invoice ","通用定额发票 "),
    PASSENGER_TRANSPORT_INVOICE ("passenger_transport_invoice ","旅客运输普票 "),
    HIGHWAY_PASSENGER_INVOICE ("highway_passenger_invoice ","公路客运发票 "),
    SHIPPING_INVOICE("shipping_invoice","船运客票 "),
    TAXI_TICKET ("taxi_ticket ","出租车发票 "),
    PARKING_INVOICE ("parking_invoice ","停车费发票 "),
    VEHICLE_TOLL("vehicle_toll","过路过桥费发票、汽车通行费 "),
    AIR_TRANSPORT ("air_transport ","行程单 "),
    TRAIN_TICKET("train_ticket","火车票 "),
    VAT_INVOICE_SALES_LIST("vat_invoice_sales_list","增值税销货清单 "),
    SHOP_RECEIPT("shop_receipt","商户小票 "),
    VAT_ELECTRONIC_SPECIAL_INVOICE("vat_electronic_special_invoice","增值税电子专用发票 "),
    VAT_ELECTRONIC_SPECIAL_INVOICE_NEW("vat_electronic_special_invoice_new","全电电子发票(增值税专用发票) "),
    VAT_ELECTRONIC_INVOICE_NEW("vat_electronic_invoice_new","全电电子发票(普通发票) "),
    BLOCKCHAIN_ELECTRONIC_INVOICE ("blockchain_electronic_invoice","区块链电子发票 ");

    private String type;
    private String typeDesc;

    InvoiceTypeEnum(String type,String typeDesc){
        this.type = type;
        this.typeDesc = typeDesc;
    }


    public static String getTypeDesc(String type) {
        for (InvoiceTypeEnum e : InvoiceTypeEnum.values()) {
            if (e.type.equals(type)) {
                return e.typeDesc;
            }
        }
        return null;
    }



}
